using System.Collections.Generic;
using IQIGame.Onigao.Framework;

namespace IQIGame.Onigao.GamePlay
{
    public enum EPlayerCommandType : byte
    {
        None = 0,
        MoveStart = 1,
        MoveEnd = 2,
        Skill = 3,
    }

    public abstract class PlayerCommand : IReusableClass
    {
        public abstract EPlayerCommandType type { get; }

        protected PlayerCommand()
        {
        }

        public abstract void Execute(UnitView entity);
        public uint MaxStore => 3;

        public virtual void OnReset()
        {
        }

        public virtual void Free()
        {
            ClassPool.PutAutoType(this);
        }
    }
}